package com.cleaningcloud.cld.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalTime;

/**
 * 班次管理对象 cld_classes
 *
 * @author cleaningcloud
 * @date 2024-10-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldClasses extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 班次ID
     */
    private Long classesId;

    /**
     * 班次名称
     */
    @Excel(name = "班次名称")
    private String classesName;

    /**
     * 上班时间1
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "上班时间1", width = 30)
    private LocalTime goToWorkTime1;

    /**
     * 下班时间1
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "下班时间1", width = 30)
    private LocalTime goOffWorkTime1;

    /**
     * 是否次日打卡1
     */
    private Integer isNextTime1;

    /**
     * 上班时间2
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "上班时间2", width = 30)
    private LocalTime goToWorkTime2;

    /**
     * 下班时间2
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "下班时间2", width = 30)
    private LocalTime goOffWorkTime2;

    /**
     * 是否次日打卡2
     */
    private Integer isNextTime2;

    /**
     * 上班时间3
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "上班时间3", width = 30)
    private LocalTime goToWorkTime3;

    /**
     * 下班时间3
     */
    @JsonFormat(pattern = "HH:mm")
    @Excel(name = "下班时间3", width = 30)
    private LocalTime goOffWorkTime3;

    /**
     * 是否次日打卡3
     */
    private Integer isNextTime3;

    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createId;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 备注是否关闭
     */
    @Excel(name = "备注是否关闭")
    private Long flag;

    /**
     * 是否特殊班
     */
    @Excel(name = "是否特殊班")
    private int isSpecial;

    //项目ID
    private Long projectId;
    //员工ID
    private Long staffId;
    //岗位ID
    private Long projectPostName;
}
